# Contributor: mio <miyopan@e.email>
# Maintainer: mio <miyopan@e.email>
pkgname=mypaint-brushes2
pkgver=2.0.2
pkgrel=1
pkgdesc="default MyPaint brushes (version 2)"
url="https://github.com/mypaint/mypaint-brushes"
arch="noarch"
license="CC0-1.0"
subpackages="$pkgname-dev"
source="https://github.com/mypaint/mypaint-brushes/releases/download/v$pkgver/mypaint-brushes-$pkgver.tar.xz"
builddir="$srcdir/mypaint-brushes-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
	}

package() {
	make DESTDIR="$pkgdir" install
}

dev() {
	depends="$pkgname=$pkgver-r$pkgrel"

	amove usr/share/pkgconfig
}

sha512sums="
bae870e930381b818165e5e39d38b25782d5744c9a507a71dab37ae7ca2d4502896057f919a16eb9305d803a01db3a948a735d5c5b850893997a9afd6403144b  mypaint-brushes-2.0.2.tar.xz
"
